﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/SiteMain.Master" Inherits="System.Web.Mvc.ViewPage<TvGuide.UI.Models.ProgramData>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Shedule
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <table style="overflow:auto;">
        <tr>
            <td style="overflow:auto;">
                <div class="Home-page_Channel_Div">
                    <%-- <% foreach (var ch in Model.ChList) { Html.ActionLink(ch.Name, "Home", "Home"); } %>--%>
                    <% foreach(var ch in Model.ChList) { %>
                    
                    <a href="<%: Url.Action("Shedule","Home",new {id=ch.ID})  %>">
                        <%: ch.Name+"  " %>
                    </a>
                    <br/>
                    <%} %>
                </div>
            </td>
            <td style="vertical-align:top">
                <div>
                    <table>
                        <tr>
                            <th class="Home-page_Time_Th">
                                Time
                            </th>
                            <th class="Home-page_Program_Th">
                                programs
                            </th>
                        </tr>
                        <% foreach (var pr in Model.ProgsList)
       {  %>
                        <tr>
                            <td>
                                <%: pr.Time%>
                            </td>
                            <td>
                                <%: pr.Name%>
                            </td>
                        </tr>
                        <%} %>
                    </table>
                </div>
            </td>
        </tr>
    </table>
</asp:Content>
